extends ColorRect

class_name VisualCell

onready var GRID = find_parent("GRID")

var colors = {
	CellType.types.ROOM: Color8(0,255,0),
	CellType.types.CORRIDOR: Color8(255,0,255),
}

var cell

func update_color():
	if cell:
		color = colors[cell.type.type_index]

#func _process(delta):
#	update_color()
